package cn.wenjie.gd.dao;


import java.util.List;

import cn.wenjie.gd.domain.CollectionSub;
import cn.wj.base.dao.BaseDaoImp;

public class CollectionSubDaoImp extends BaseDaoImp<CollectionSub, Integer> implements CollectionSubDao {

	@Override
	public Class<CollectionSub> getEntryClass() {
		return CollectionSub.class;
	}

	@Override
	public List<CollectionSub> getByCollectionId(Integer id) {
		Object objects[]={id};
		return query(" SELECT * FROM collectionsub c WHERE c.collectionId=? ", getEntryClass(), objects);
	}

}
